﻿using RpcHelper.Config;
using RpcSync.Service.Interface;

namespace RpcSync.Service.Config
{
    internal class DictateNodeConfig : IDictateNodeConfig
    {
        private IConfigCollect _Config;

        public DictateNodeConfig(IConfigCollect config)
        {
            this._Config = config;
        }

        public int ServerNodeVer
        {
            get => _Config.GetValue<int>("ServerNodeVer",0);
        }

        public int DictateNodeVer
        {
            get => _Config.GetValue<int>("DictateNodeVer",0);
        }
    }
}
